package com.epoch.bussiness.wxuser.controller;

import com.epoch.base.annotation.ControllerBind;
import com.epoch.base.base.BaseController;
import com.epoch.bussiness.wxuser.dao.WxUserDao;
import com.jfinal.kit.Kv;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.SqlPara;

@ControllerBind(controllerKey = "/bs/user")
public class WxUserController extends BaseController {
	
	public void index() {
		render("/bs/user/bs_user_tab.html");
	}
	
	public void listUI() {
		render("/bs/user/bs_user_list.html");
	}
	
	public void findWxUserList() {
		Kv param = commonParams();
        SqlPara sqlPara = Db.getSqlPara("bs.findWxUserList", param);
        Page<WxUserDao> wxUserList = WxUserDao.dao.paginate(sqlPara, param);
        renderJson(wxUserList);
	}
}
